//
//  UIView+imageScreenShot.m
//  ImageTool
//
//  Created by Apple on 2017/6/5.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "UIView+imageScreenShot.h"

@implementation UIView (imageScreenShot)
- (UIImage *)imageScreenShot
{
    UIGraphicsBeginImageContext(self.frame.size);
    [self.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *imageNew = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return imageNew;
}
@end
